<div class="peopleProblems form">
<?php echo $this->Form->create('PeopleProblem');?>

	<fieldset>
 		<legend><?php __('Cargar un Problema a un Paciente'); ?></legend>
	<?php
		echo $this->Form->input('person_id',array( 'type' => 'hidden', 'value' => $id_paciente));

		echo '
		<div id="buscador_problemas">
			<label>Problema</label>
			<input name="data[Problem][name]" type="text" id="ProblemName" readonly="true" onClick="window.open(\'/problems/find\', \'_tksearch\', \'left=250,top=150,HEIGHT=450,resizable=yes,scrollbars=yes,WIDTH=400\');return false;"/>
			<input type="hidden" name="data[PeopleProblem][problem_id]" id="PeopleProblemProblemId" value="0" />
		</div>
		';

//		echo $this->Form->input('problem_id',array( 'label' => 'Problema'));
		echo $this->Form->input('stateproblem_id',array( 'label' => 'Estado Actual del Problema'));
		echo $this->Form->input('fecha_origen',array( 'label' => 'Fecha de Origen'
                                    , 'dateFormat' => 'DMY'
                                    , 'minYear' => date('Y') - 80
                                    , 'maxYear' => date('Y') ));
		echo $this->Form->input('tag_id',array( 'label' => 'Etiquetar', 'empty' => true));
	?>
	</fieldset>
	<?php echo $this->Form->end(__('Cargar', true));?>
</div>

